<?php if (!empty($customFields)): ?>
	<div class="section">
		<div class="block">
			<h2>
				<img src="/images/icons/farmfresh/32x32/application_view_detail.png" />
				Custom Information
			</h2>
			<div class="table-block">
				<table class="form-table">
					<?php foreach ($customFields as $customField): ?>
						<tr>
							<th scope="row" width="135">
								<?php echo $customField->createLabel(); ?>
							</th>
							<td>
								<?php echo $customField->createInput($user); ?>
							</td>
						</tr>
					<?php endforeach; ?>
				</table>
			</div>
		</div>
	</div>
<?php endif; ?>
<?php if (!empty($customFieldGroups)): ?>
	<?php foreach ($customFieldGroups as $customFieldGroup): ?>
		<?php if (!empty($customFieldGroup->customFields)): ?>
			<div class="section">
				<div class="block">
					<h2>
						<img src="/images/icons/farmfresh/32x32/application_view_detail.png" />
						<?php echo $customFieldGroup->name; ?>
					</h2>
					<div class="table-block">
						<table class="form-table">
							<?php foreach ($customFieldGroup->customFields as $customField): ?>
								<tr>
									<th scope="row" width="135">
										<?php echo $customField->createLabel(); ?>
									</th>
									<td>
										<?php echo $customField->createInput($user); ?>
									</td>
								</tr>
							<?php endforeach; ?>
						</table>
					</div>
				</div>
			</div>
		<?php endif; ?>
	<?php endforeach; ?>
<?php endif; ?>